/* 全局样式重置 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  color: #2c3e50;
}

#app {
  height: 100vh;
}

/* Element Plus 样式覆盖 */
.el-menu {
  border-right: none !important;
}

.el-menu-item.is-active {
  background-color: #1890ff !important;
  color: #fff !important;
}

.el-menu-item:hover {
  background-color: #e6f7ff !important;
}

.el-header {
  padding: 0 20px !important;
  height: 60px !important;
  line-height: 60px !important;
  background-color: #fff !important;
  border-bottom: 1px solid #e6e6e6 !important;
}

.el-aside {
  background-color: #001529 !important;
  transition: width 0.3s !important;
}

.el-main {
  padding: 20px !important;
  background-color: #f0f2f5 !important;
}

/* 自定义组件样式 */
.page-container {
  padding: 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.table-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-header .left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.table-header .right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .el-aside {
    width: 64px !important;
  }

  .el-main {
    padding: 12px !important;
  }

  .page-container {
    padding: 12px;
  }
}
